package com.findsing.jetty.websocket.model;

import org.json.JSONObject;

import com.findsing.jetty.websocket.util.Coder;

public class Jsonization {
	public String toString()
	{
		try
		{
			return Coder.toJsonString(this);
		}
		catch(Exception e)
		{
			throw new RuntimeException(e);
		}
	}

	public JSONObject toJSONObject()
	{
		return new JSONObject(toString());
	}
}
